<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Vue 测试实例</title>
  <script src="https://unpkg.com/vue@next"></script>
</head>

<style>
  body {
    margin: 30px;
  }

  .bounce-enter-active {
    animation: bounce-in .5s ease-out both;
  }

  .bounce-leave-active {
    animation: bounce-in .5s reverse ease-in both;
  }

  @keyframes bounce-in {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(1.25);
    }
    100% {
      transform: scale(1);
    }
  }
</style>

<body>
<div id="demo">
  <button @click="show = !show">Toggle show</button>

  <transition name="bounce">
    <p v-if="show">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris facilisis enim libero, at lacinia diam fermentum id. Pellentesque habitant morbi tristique senectus et netus.</p>
  </transition>
</div>


<script>
  const Demo = {
    data() {
      return {
        show: true
      }
    }
  }

  Vue.createApp(Demo).mount('#demo')
</script>
</body>
</html>

